#include "stdafx.h"
#include "Label.h"

Label::Label(std::string text, Control::Ptr parent /* = nullptr */)
	: Control(parent)
{
	m_independentProperties.push_back("Text");

	setText(text);
}

void Label::setText(std::string text)
{
	setValue("Text", text);
}

std::string Label::getText()
{
	return getValue("Text");
}